<?php

namespace app\backend\controller;

use think\Controller;
use think\Request;
use think\Session;

class Common extends Controller
{
	protected $userInfo = [];
    protected $map = [];
    protected $pageSize = 15;

	public function __construct(Request $request)
	{
		parent::__construct($request);

        $this->userInfo = Session::get('userInfo');

        if (empty($this->userInfo['admin_id']))
		{
			$this->redirect('backend/Account/login');
		}

		$this->assign('userInfo', $this->userInfo);
	}
}